'use strict'

var _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault')

Object.defineProperty(exports, '__esModule', {
  value: true
})
exports.default = void 0

var _extends2 = _interopRequireDefault(require('@babel/runtime/helpers/extends'))

function omit(obj, fields) {
  // eslint-disable-next-line prefer-object-spread
  var shallowCopy = (0, _extends2.default)({}, obj)

  for (var i = 0; i < fields.length; i += 1) {
    var key = fields[i]
    delete shallowCopy[key]
  }

  return shallowCopy
}

var _default = omit
exports.default = _default
